package cn.springdemo.test;

import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testDI2 {
    @Test
    public void test() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("context.xml");
        testDI testDI = (testDI) context.getBean("testDI");
        System.out.println(testDI.toString());

    }


}
